<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of FollowerBuilder
 *
 * @author ananda
 */
class Model_Message_MassPeopleBuilder extends Data_ArrayIterator
{
    public $cursor = 0;
    public $category = 'user';

    public function init()
    {
    }

    public function setCategory($category)
    {
        $this->category = $category;
    }

    /**
     * 迭代器接口
     * @return mixed
     */
    public function current()
    {
        return Com::glob()->people->gen($this->handler[$this->cursor], $this->category);
    }

}
